package com.example.books.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author admin
 * @since 2021-06-24
 */
public class Details implements Serializable {

    private static final long serialVersionUID=1L;

      @TableId(value = "id", type = IdType.AUTO)
      private Integer id;

    private String name;

    private Integer price;

    
    public Integer getId() {
        return id;
    }

      public void setId(Integer id) {
          this.id = id;
      }
    
    public String getName() {
        return name;
    }

      public void setName(String name) {
          this.name = name;
      }
    
    public Integer getPrice() {
        return price;
    }

      public void setPrice(Integer price) {
          this.price = price;
      }

    @Override
    public String toString() {
        return "Details{" +
              "id=" + id +
                  ", name=" + name +
                  ", price=" + price +
              "}";
    }
}
